From d076f7e274047076d0cfc351ed985e2b41a30ca3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 24 Aug 2009 15:08:58 +0000 Subject: [PATCH] disabled ParseKit on PHP 5.3+, it's broken and throws "Cannot redeclare class/function" in about evry file --- maintenance/syntaxChecker.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maintenance/syntaxChecker.php b/maintenance/syntaxChecker.php index a2e3619f32..387b92a684 100644 --- a/maintenance/syntaxChecker.php +++ b/maintenance/syntaxChecker.php @@ -42,9 +42,12 @@ class SyntaxChecker extends Maintenance { $this->buildFileList(); $this->output( "done.\n" ); + // ParseKit is broken on PHP 5.3+, disabled until this is fixed + $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' ); + $this->output( "Checking syntax (this can take a really long time)...\n\n" ); foreach( $this->mFiles as $f ) { - if( function_exists( 'parsekit_compile_file' ) ) { + if( $useParseKit ) { $this->checkFileWithParsekit( $f ); } else { $this->checkFileWithCli( $f ); -- 2.20.1